Understanding Resource Allocation: How It Works Explained